
/**
 * Project Name:e3-item-web
 * File Name:Item.java
 * Package Name:cn.e3mall.item.pojo
 * Date:2019年5月17日下午2:54:50
 * Copyright (c) 2019, chenzhou1025@126.com All Rights Reserved.
 */

package com.huixi.common.pojo;

import com.huixi.entity.Item;

/**
 * ClassName:Item <br/>  
 * Function: TODO ADD FUNCTION. <br/>  
 * Reason:   TODO ADD REASON. <br/>  
 * Date:     2019年5月17日 下午2:54:50 <br/>  
 * @author 韦丽娜
 * @version
 * @since JDK 1.6
 * @see
 */
public class TbItem extends Item {

    public TbItem(Item item) {
        this.setId(item.getId());
        this.setTitle(item.getTitle());
        this.setSellPoint(item.getSellPoint());
        this.setPrice(item.getPrice());
        this.setNum(item.getNum());
        this.setBarcode(item.getBarcode());
        this.setImage(item.getImage());
        this.setCid(item.getCid());
        this.setStatus(item.getStatus());
        this.setCreated(item.getCreated());
        this.setUpdated(item.getUpdated());
    }

    public String[] getImages() {
        String imageString = this.getImage();
        if (imageString != null && !"".equals(imageString)) {
            String[] strings = imageString.split(",");
            return strings;
        }
        return null;
    }
}
  
